﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.DataAccess
{
    /// <summary>
    /// 数据库比较操作
    /// </summary>
    public enum SqlOperations
    {
        /// <summary>
        /// 运算符：=
        /// </summary>
        Equals = 0,

        /// <summary>
        /// 运算符：&lt;&gt;
        /// </summary>
        NotEquals,

        /// <summary>
        /// 运算符：&gt;
        /// </summary>
        LargerThan,

        /// <summary>
        /// 运算符：&gt;=
        /// </summary>
        LargerThanOrEquals,

        /// <summary>
        /// 运算符：&lt;
        /// </summary>
        LessThan,

        /// <summary>
        /// 运算符：&lt;=
        /// </summary>
        LessThanOrEquals,

        /// <summary>
        /// 是否为空
        /// </summary>
        IsNull,

        /// <summary>
        /// 是否不为空
        /// </summary>
        IsNotNull
    }

    /// <summary>
    /// 字符串的比较操作
    /// </summary>
    public enum StringOperations
    {
        /// <summary>
        /// 运算符：=
        /// </summary>
        Equals = 0,

        /// <summary>
        /// 运算符：&lt;&gt;
        /// </summary>
        NotEquals,

        /// <summary>
        /// 运算符：LIKE
        /// </summary>
        Like,

        /// <summary>
        /// 运算符：左LIKE
        /// </summary>
        LeftLike,

        /// <summary>
        /// 运算符：右LIKE
        /// </summary>
        RightLike,

        /// <summary>
        /// 是否为空
        /// </summary>
        IsNull,

        /// <summary>
        /// 是否不为空
        /// </summary>
        IsNotNull
    }

    /// <summary>
    /// 逻辑操作
    /// </summary>
    public enum LogicOperations
    {
        /// <summary>
        /// AND
        /// </summary>
        AND,

        /// <summary>
        /// OR
        /// </summary>
        OR,

        /// <summary>
        /// 未知，不用
        /// </summary>
        Unknown,
    }

    /// <summary>
    /// Bool类型的连接操作
    /// </summary>
    public enum BooleanOperations
    {
        /// <summary>
        /// 运算符：=
        /// </summary>
        Equals = 0,

        /// <summary>
        /// 运算符：&lt;&gt;
        /// </summary>
        NotEquals,
    }
}
